package com.jinhongone.pattern.behavior.visitor;

/**
 * @author jinho
 * @className Dog
 * @description 具体元素
 * @date 2025/4/17 10:18
 */
public class Dog implements Animal {
    @Override
    public void accept(Person person) {
        person.visit(this);
        System.out.println("狗狗被访问,汪汪汪");
    }
}
